TOOL.Category		= "(WarMelons)"
TOOL.Name			= "#Warmelon Team Selector"
TOOL.Command		= nil
TOOL.ConfigName		= ""

TOOL.Targets = {};

TOOL.ClientConVar[ "selectrange" ] = "512"
TOOL.ClientConVar[ "team" ] = "0"

if (CLIENT) then
	language.Add( "Tool_omelon_cmd_name", "Warmelon Command" )
	language.Add( "Tool_omelon_cmd_desc", "Used to change your team." )
	language.Add( "Tool_omelon_cmd_0", "Reload:Team Select" )
end

function TOOL:Reload(trace)
if (SERVER) then
WMJoinTeam(self:GetOwner(), self:GetClientNumber("team"))
end
end
	

function TOOL.BuildCPanel (CPanel)
	CPanel:AddControl ("Header", { Text="#Tool_omelon_cmd_name", Description="#Tool_omelon_cmd_desc" })
	

	CPanel:AddControl ("Slider", {
		Label = "Team Selection",
		Command = "omelon_cmd_team",
		Type = "Integer",
		Min = "0",
		Max = "6"
	} );
end
